package at.horario.model.algo;

/**
 * Created by IntelliJ IDEA.
 * User: at
 * Date: 12/Ago/2007
 * Time: 22:53:52
 * To change this template use File | Settings | File Templates.
 */
public class Movimento {
    public int horario1;
    public int horario2;
    public int professor;
    public int valor;
    public int sobreposicao;
    public int gaps;
    public int excessoaulas;

    public boolean equals(Object obj) {
        Movimento o = (Movimento) obj;
        return this.professor == o.professor && this.horario1 == o.horario1 && this.horario2 == o.horario2;
    }

    public String toString() {
        String s = "[";
        s += "horario1:" + horario1;
        s += ";horario2:" + horario2;
        s += ";professor:" + professor;
        s += ";valor:" + valor;
        s += ";sobreposicao:" + sobreposicao;
        s += ";gaps:" + gaps;
        s += ";excessoaulas:" + excessoaulas;
        s += "]";
        return s;
    }
}
